package cn.nubia.admin.sysconfig.query;

import cn.nubia.admin.common.query.PageQueryParam;
import cn.nubia.admin.common.utils.DateUtil;

import java.util.Date;

/**
 * Created by justin on 15/8/19.
 */
public class SystemLogQuery extends PageQueryParam {


    private String createTimeRange;

    private String createName;

    private Integer moduleType;

    private Date createTimes;
    private Date createTimee;

    public String getCreateTimeRange() {
        return createTimeRange;
    }

    public void setCreateTimeRange(String createTimeRange) {
        this.createTimeRange = createTimeRange;
        if(createTimeRange!=null && !"".equals(createTimeRange)){
            this.setCreateTimes(DateUtil.getBeginDateFromRange(createTimeRange));
            this.setCreateTimee(DateUtil.getEndDateFromRage(createTimeRange));
        }
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Integer getModuleType() {
        return moduleType;
    }

    public void setModuleType(Integer moduleType) {
        this.moduleType = moduleType;
    }

    public Date getCreateTimes() {
        return createTimes;
    }

    public void setCreateTimes(Date createTimes) {
        this.createTimes = createTimes;
    }

    public Date getCreateTimee() {
        return createTimee;
    }

    public void setCreateTimee(Date createTimee) {
        this.createTimee = createTimee;
    }
}
